FROM mysql:5.7

ENV TZ=Asia/Shanghai


ADD ./mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY ./sgcc-controller-mysql-5.7.sql /docker-entrypoint-initdb.d